package org.demo.patten.decorator;

/**
 * @author zhuj
 * @date 2025/3/22
 * @apiNote
 */
public class Sugar extends CondimentDecorator{
    public Sugar(Beverage beverage) {
        super(beverage);
    }

    @Override
    public String getDescription() {
        return beverage.getDescription() + " + 糖";
    }

    @Override
    public double cost() {
        return beverage.cost() + 2.0;
    }
}
